package com.niit.onlinemusicserver34.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.niit.onlinemusicserver34.common.R;
import com.niit.onlinemusicserver34.model.domain.Consumer;
import com.niit.onlinemusicserver34.model.request.AdminRequest;
import com.niit.onlinemusicserver34.model.request.ConsumerRequest;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;

public interface ConsumerService extends IService<Consumer> {
    R allUser();
    R deleteUser(Integer id);
    R allUser(IPage page);

    R verifyPasswd(ConsumerRequest consumerRequest);

    R addUser(ConsumerRequest registryRequest);
    boolean existUser(String username);

    R getById(Integer id);


    //用户资料修改
    R updateUserMsg(ConsumerRequest updateRequest);
    //更新用户图像
    R updateUserAvator(MultipartFile avatorFile, int id);

    //更新密码
    R updatePassword(ConsumerRequest updatePasswordRequest);
}
